﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="WSIMMessaging" targetNamespace="http://tempuri.org/WSIMMessaging.xsd" xmlns:mstns="http://tempuri.org/WSIMMessaging.xsd" xmlns="http://tempuri.org/WSIMMessaging.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="wsimConnectionString1" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="wsimConnectionString1 (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.wsimConnectionString1.ConnectionString" Provider="MySql.Data.MySqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="wsim_historyTableAdapter" GeneratorDataComponentClassName="wsim_historyTableAdapter" Name="wsim_history" UserDataComponentName="wsim_historyTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="wsimConnectionString1 (Web.config)" DbObjectName="wsim.wsim_history" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO `wsim`.`wsim_history` (`TEXT`, `MSG_DATETIME`, `USER_SENDER`, `USER_RECEIVER`) VALUES (@TEXT, @MSG_DATETIME, @USER_SENDER, @USER_RECEIVER)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TEXT" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TEXT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@MSG_DATETIME" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="MSG_DATETIME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@USER_SENDER" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="USER_SENDER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@USER_RECEIVER" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="USER_RECEIVER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT `TEXT`, `MSG_DATETIME`, `USER_SENDER`, `USER_RECEIVER` FROM `wsim`.`wsim_history`</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="TEXT" DataSetColumn="TEXT" />
              <Mapping SourceColumn="MSG_DATETIME" DataSetColumn="MSG_DATETIME" />
              <Mapping SourceColumn="USER_SENDER" DataSetColumn="USER_SENDER" />
              <Mapping SourceColumn="USER_RECEIVER" DataSetColumn="USER_RECEIVER" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="wsim_message_attachmentTableAdapter" GeneratorDataComponentClassName="wsim_message_attachmentTableAdapter" Name="wsim_message_attachment" UserDataComponentName="wsim_message_attachmentTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="wsimConnectionString1 (Web.config)" DbObjectName="wsim.wsim_message_attachment" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM `wsim`.`wsim_message_attachment` WHERE ((`ID` = @Original_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO `wsim`.`wsim_message_attachment` (`ID`, `MSG_ID`, `AT_TYPE`, `FILENAME`, `AT_SIZE`) VALUES (@ID, @MSG_ID, @AT_TYPE, @FILENAME, @AT_SIZE)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@MSG_ID" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="MSG_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="SByte" Direction="Input" ParameterName="@AT_TYPE" Precision="0" ProviderType="Byte" Scale="0" Size="0" SourceColumn="AT_TYPE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FILENAME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FILENAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AT_SIZE" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="AT_SIZE" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT `ID`, `MSG_ID`, `AT_TYPE`, `FILENAME`, `AT_SIZE` FROM `wsim`.`wsim_message_attachment`</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE `wsim`.`wsim_message_attachment` SET `ID` = @ID, `MSG_ID` = @MSG_ID, `AT_TYPE` = @AT_TYPE, `FILENAME` = @FILENAME, `AT_SIZE` = @AT_SIZE WHERE ((`ID` = @Original_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@MSG_ID" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="MSG_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="SByte" Direction="Input" ParameterName="@AT_TYPE" Precision="0" ProviderType="Byte" Scale="0" Size="0" SourceColumn="AT_TYPE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FILENAME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FILENAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AT_SIZE" Precision="0" ProviderType="Int32" Scale="0" Size="0" SourceColumn="AT_SIZE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="MSG_ID" DataSetColumn="MSG_ID" />
              <Mapping SourceColumn="AT_TYPE" DataSetColumn="AT_TYPE" />
              <Mapping SourceColumn="FILENAME" DataSetColumn="FILENAME" />
              <Mapping SourceColumn="AT_SIZE" DataSetColumn="AT_SIZE" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="wsimConnectionString1 (Web.config)" DbObjectName="wsim.wsim_message_attachment" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByMsgID" GetMethodModifier="Public" GetMethodName="GetDataByMsgID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByMsgID" UserSourceName="GetDataByMsgID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, MSG_ID,AT_TYPE, FILENAME, AT_SIZE
FROM            wsim_message_attachment
WHERE        (MSG_ID = @ID_MSG)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID_MSG" ColumnName="MSG_ID" DataSourceName="wsim.wsim_message_attachment" DataTypeServer="bigint(20)" DbType="Int64" Direction="Input" ParameterName="@ID_MSG" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="MSG_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="wsim_message_modelTableAdapter" GeneratorDataComponentClassName="wsim_message_modelTableAdapter" Name="wsim_message_model" UserDataComponentName="wsim_message_modelTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="wsimConnectionString1 (Web.config)" DbObjectName="wsim.wsim_message_model" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM `wsim`.`wsim_message_model` WHERE ((`ID` = @Original_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO `wsim`.`wsim_message_model` (`ID`, `USER_SENDER`, `USER_RECEIVER`, `IS_TEXT_MESSAGE`, `TEXT`, `MSG_DATETIME`, `IS_NOT_READ`, `MSG_DATE_READ`) VALUES (@ID, @USER_SENDER, @USER_RECEIVER, @IS_TEXT_MESSAGE, @TEXT, @MSG_DATETIME, @IS_NOT_READ, @MSG_DATE_READ)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@USER_SENDER" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="USER_SENDER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@USER_RECEIVER" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="USER_RECEIVER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="SByte" Direction="Input" ParameterName="@IS_TEXT_MESSAGE" Precision="0" ProviderType="Byte" Scale="0" Size="0" SourceColumn="IS_TEXT_MESSAGE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TEXT" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TEXT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@MSG_DATETIME" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="MSG_DATETIME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="SByte" Direction="Input" ParameterName="@IS_NOT_READ" Precision="0" ProviderType="Byte" Scale="0" Size="0" SourceColumn="IS_NOT_READ" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@MSG_DATE_READ" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="MSG_DATE_READ" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT `ID`, `USER_SENDER`, `USER_RECEIVER`, `IS_TEXT_MESSAGE`, `TEXT`, `MSG_DATETIME`, `IS_NOT_READ`, `MSG_DATE_READ` FROM `wsim`.`wsim_message_model`</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE `wsim`.`wsim_message_model` SET `ID` = @ID, `USER_SENDER` = @USER_SENDER, `USER_RECEIVER` = @USER_RECEIVER, `IS_TEXT_MESSAGE` = @IS_TEXT_MESSAGE, `TEXT` = @TEXT, `MSG_DATETIME` = @MSG_DATETIME, `IS_NOT_READ` = @IS_NOT_READ, `MSG_DATE_READ` = @MSG_DATE_READ WHERE ((`ID` = @Original_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@USER_SENDER" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="USER_SENDER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@USER_RECEIVER" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="USER_RECEIVER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="SByte" Direction="Input" ParameterName="@IS_TEXT_MESSAGE" Precision="0" ProviderType="Byte" Scale="0" Size="0" SourceColumn="IS_TEXT_MESSAGE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TEXT" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TEXT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@MSG_DATETIME" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="MSG_DATETIME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="SByte" Direction="Input" ParameterName="@IS_NOT_READ" Precision="0" ProviderType="Byte" Scale="0" Size="0" SourceColumn="IS_NOT_READ" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@MSG_DATE_READ" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="MSG_DATE_READ" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="USER_SENDER" DataSetColumn="USER_SENDER" />
              <Mapping SourceColumn="USER_RECEIVER" DataSetColumn="USER_RECEIVER" />
              <Mapping SourceColumn="IS_TEXT_MESSAGE" DataSetColumn="IS_TEXT_MESSAGE" />
              <Mapping SourceColumn="TEXT" DataSetColumn="TEXT" />
              <Mapping SourceColumn="MSG_DATETIME" DataSetColumn="MSG_DATETIME" />
              <Mapping SourceColumn="IS_NOT_READ" DataSetColumn="IS_NOT_READ" />
              <Mapping SourceColumn="MSG_DATE_READ" DataSetColumn="MSG_DATE_READ" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="wsimConnectionString1 (Web.config)" DbObjectName="wsim.wsim_message_model" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetNewMessages" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetNewMessages" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetNewMessages" UserSourceName="GetNewMessages">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, USER_SENDER, USER_RECEIVER, IS_TEXT_MESSAGE, TEXT, MSG_DATETIME
FROM            wsim_message_model
WHERE        (USER_RECEIVER = @ID) AND (IS_NOT_READ = 1)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="USER_RECEIVER" DataSourceName="wsim.wsim_message_model" DataTypeServer="bigint(20)" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="USER_RECEIVER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="wsimConnectionString1 (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateReadMessage" Modifier="Public" Name="UpdateReadMessage" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="UpdateReadMessage">
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>UPDATE       wsim_message_model
SET                IS_NOT_READ = 0
WHERE        (USER_RECEIVER = @Receiver)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Receiver" ColumnName="USER_RECEIVER" DataSourceName="wsim.wsim_message_model" DataTypeServer="bigint(20)" DbType="Int64" Direction="Input" ParameterName="@Receiver" Precision="0" ProviderType="Int64" Scale="0" Size="0" SourceColumn="USER_RECEIVER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="WSIMMessaging" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msdata:EnforceConstraints="False" msprop:Generator_UserDSName="WSIMMessaging" msprop:Generator_DataSetName="WSIMMessaging" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="wsim_history" msprop:Generator_UserTableName="wsim_history" msprop:Generator_RowDeletedName="wsim_historyRowDeleted" msprop:Generator_RowChangedName="wsim_historyRowChanged" msprop:Generator_RowClassName="wsim_historyRow" msprop:Generator_RowChangingName="wsim_historyRowChanging" msprop:Generator_RowEvArgName="wsim_historyRowChangeEvent" msprop:Generator_RowEvHandlerName="wsim_historyRowChangeEventHandler" msprop:Generator_TableClassName="wsim_historyDataTable" msprop:Generator_TableVarName="tablewsim_history" msprop:Generator_RowDeletingName="wsim_historyRowDeleting" msprop:Generator_TablePropName="wsim_history">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="TEXT" msprop:Generator_UserColumnName="TEXT" msprop:Generator_ColumnPropNameInRow="TEXT" msprop:Generator_ColumnVarNameInTable="columnTEXT" msprop:Generator_ColumnPropNameInTable="TEXTColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MSG_DATETIME" msprop:Generator_UserColumnName="MSG_DATETIME" msprop:Generator_ColumnPropNameInRow="MSG_DATETIME" msprop:Generator_ColumnVarNameInTable="columnMSG_DATETIME" msprop:Generator_ColumnPropNameInTable="MSG_DATETIMEColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="USER_SENDER" msprop:Generator_UserColumnName="USER_SENDER" msprop:Generator_ColumnPropNameInRow="USER_SENDER" msprop:Generator_ColumnVarNameInTable="columnUSER_SENDER" msprop:Generator_ColumnPropNameInTable="USER_SENDERColumn" type="xs:long" />
              <xs:element name="USER_RECEIVER" msprop:Generator_UserColumnName="USER_RECEIVER" msprop:Generator_ColumnPropNameInRow="USER_RECEIVER" msprop:Generator_ColumnVarNameInTable="columnUSER_RECEIVER" msprop:Generator_ColumnPropNameInTable="USER_RECEIVERColumn" type="xs:long" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="wsim_message_attachment" msprop:Generator_UserTableName="wsim_message_attachment" msprop:Generator_RowDeletedName="wsim_message_attachmentRowDeleted" msprop:Generator_RowChangedName="wsim_message_attachmentRowChanged" msprop:Generator_RowClassName="wsim_message_attachmentRow" msprop:Generator_RowChangingName="wsim_message_attachmentRowChanging" msprop:Generator_RowEvArgName="wsim_message_attachmentRowChangeEvent" msprop:Generator_RowEvHandlerName="wsim_message_attachmentRowChangeEventHandler" msprop:Generator_TableClassName="wsim_message_attachmentDataTable" msprop:Generator_TableVarName="tablewsim_message_attachment" msprop:Generator_RowDeletingName="wsim_message_attachmentRowDeleting" msprop:Generator_TablePropName="wsim_message_attachment">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:long" />
              <xs:element name="MSG_ID" msprop:Generator_UserColumnName="MSG_ID" msprop:Generator_ColumnPropNameInRow="MSG_ID" msprop:Generator_ColumnVarNameInTable="columnMSG_ID" msprop:Generator_ColumnPropNameInTable="MSG_IDColumn" type="xs:long" />
              <xs:element name="AT_TYPE" msprop:Generator_UserColumnName="AT_TYPE" msprop:Generator_ColumnPropNameInRow="AT_TYPE" msprop:Generator_ColumnVarNameInTable="columnAT_TYPE" msprop:Generator_ColumnPropNameInTable="AT_TYPEColumn" type="xs:byte" minOccurs="0" />
              <xs:element name="FILENAME" msprop:Generator_UserColumnName="FILENAME" msprop:Generator_ColumnPropNameInRow="FILENAME" msprop:Generator_ColumnVarNameInTable="columnFILENAME" msprop:Generator_ColumnPropNameInTable="FILENAMEColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AT_SIZE" msprop:Generator_UserColumnName="AT_SIZE" msprop:Generator_ColumnPropNameInRow="AT_SIZE" msprop:Generator_ColumnVarNameInTable="columnAT_SIZE" msprop:Generator_ColumnPropNameInTable="AT_SIZEColumn" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="wsim_message_model" msprop:Generator_UserTableName="wsim_message_model" msprop:Generator_RowDeletedName="wsim_message_modelRowDeleted" msprop:Generator_RowChangedName="wsim_message_modelRowChanged" msprop:Generator_RowClassName="wsim_message_modelRow" msprop:Generator_RowChangingName="wsim_message_modelRowChanging" msprop:Generator_RowEvArgName="wsim_message_modelRowChangeEvent" msprop:Generator_RowEvHandlerName="wsim_message_modelRowChangeEventHandler" msprop:Generator_TableClassName="wsim_message_modelDataTable" msprop:Generator_TableVarName="tablewsim_message_model" msprop:Generator_RowDeletingName="wsim_message_modelRowDeleting" msprop:Generator_TablePropName="wsim_message_model">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:long" />
              <xs:element name="USER_SENDER" msprop:Generator_UserColumnName="USER_SENDER" msprop:Generator_ColumnPropNameInRow="USER_SENDER" msprop:Generator_ColumnVarNameInTable="columnUSER_SENDER" msprop:Generator_ColumnPropNameInTable="USER_SENDERColumn" type="xs:long" />
              <xs:element name="USER_RECEIVER" msprop:Generator_UserColumnName="USER_RECEIVER" msprop:Generator_ColumnPropNameInRow="USER_RECEIVER" msprop:Generator_ColumnVarNameInTable="columnUSER_RECEIVER" msprop:Generator_ColumnPropNameInTable="USER_RECEIVERColumn" type="xs:long" />
              <xs:element name="IS_TEXT_MESSAGE" msprop:Generator_UserColumnName="IS_TEXT_MESSAGE" msprop:Generator_ColumnPropNameInRow="IS_TEXT_MESSAGE" msprop:Generator_ColumnVarNameInTable="columnIS_TEXT_MESSAGE" msprop:Generator_ColumnPropNameInTable="IS_TEXT_MESSAGEColumn" type="xs:boolean" minOccurs="0" />
              <xs:element name="TEXT" msprop:Generator_UserColumnName="TEXT" msprop:Generator_ColumnPropNameInRow="TEXT" msprop:Generator_ColumnVarNameInTable="columnTEXT" msprop:Generator_ColumnPropNameInTable="TEXTColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MSG_DATETIME" msprop:Generator_UserColumnName="MSG_DATETIME" msprop:Generator_ColumnPropNameInRow="MSG_DATETIME" msprop:Generator_ColumnVarNameInTable="columnMSG_DATETIME" msprop:Generator_ColumnPropNameInTable="MSG_DATETIMEColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="IS_NOT_READ" msprop:Generator_UserColumnName="IS_NOT_READ" msprop:Generator_ColumnPropNameInRow="IS_NOT_READ" msprop:Generator_ColumnVarNameInTable="columnIS_NOT_READ" msprop:Generator_ColumnPropNameInTable="IS_NOT_READColumn" type="xs:boolean" minOccurs="0" />
              <xs:element name="MSG_DATE_READ" msprop:Generator_UserColumnName="MSG_DATE_READ" msprop:Generator_ColumnPropNameInRow="MSG_DATE_READ" msprop:Generator_ColumnVarNameInTable="columnMSG_DATE_READ" msprop:Generator_ColumnPropNameInTable="MSG_DATE_READColumn" type="xs:dateTime" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:wsim_message_attachment" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="wsim_message_model_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:wsim_message_model" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>